package com.lzj.dao;

import com.lzj.entity.Department;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @autor:lzj
 * @date:2022/2/26
 */
public interface DepartmentMapper {
    Department getDepById(@Param("departmentid") int id);//查询部门id
    List<Department> getAllDeps();//查询部门全部信息
    int addDepartment(@Param("departmentname") String departmentname);//插入部门名称
    Department getDepByName(@Param("departmentname") String departmentname);//查询部门名称
    int deleteDep(@Param("departmentid") int id);//删除该id的部门
    int updateDep(@Param("departmentid")int id,@Param("departmentname") String name);//修改部门名字
}
